<template>
  <div>
  <comp :records="records" />
  </div>
</template>

<script>
import comp from './comp.vue'
import {getMessage} from '../../request/api'
export default {
data(){
  return{   
      records:[], 
  }
},
components:{
  comp
},
created(){
        getMessage({
       current:"1",
      size:"10",
      type:0
    }).then(res=>{
        console.log(res);
        this.records=res.data.records
    })
},
}
</script>

<style lang='less'>

</style>